package com.googlecode.dbtesting.datastubs;

/**
 * Provides the classes necessary to create ...
 * <p/>
 * <p/>
 * Author: Ruslan
 * Date: 22.02.2008
 * License: GPL v3
 */

public class RoundRobinString {

    private String[] strings ;
    private int number;

    public RoundRobinString(String[] strings) {
        this.strings = strings;
    }

    public String getNext() {
        String string = strings[number];
        number++;
        if (number % strings.length == 0)
            number = 0;
        return string;
    }
}
